﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExpressionEngine
{
    /// <summary>
    /// 树型数据结构
    /// </summary>
    [Serializable]
    public class TreeNode
    {
        private List<TreeNode> _childNodes = new List<TreeNode>();
        public List<TreeNode> ChildNodes
        {
            get { return _childNodes; }
            set { _childNodes = value; }
        }

        private TokenType _nodeTokenType;
        public TokenType NodeTokenType
        {
            get { return _nodeTokenType; }
            set { _nodeTokenType = value; }
        }

        private string token;
        public string Token
        {
            get { return token; }
            set { token = value; }
        }
    }
}
